//
//  GXBaseHandle.h
//  GaoXunTravel
//
//  Created by 杜梅 on 16/6/5.
//  Copyright © 2016年 May. All rights reserved.
//
#import <AFNetworking/AFNetworking.h>
#import "GXResponse.h"

typedef NS_ENUM(NSInteger, ReqMethod) {
    HTTPMethod_GET,
    HTTPMethod_POST,
    HTTPMethod_PUT,
    HTTPMethod_PATCH,
    HTTPMethod_DELETE
};
@interface GXBaseHandle : AFHTTPSessionManager


- (void)call:(ReqMethod)method
   URLString:(NSString *)URLString
  parameters:(id)parameters
    callback:(void (^)(GXResponse *result))callback;

- (void)callURLString:(NSString *)URLString
            ImageData:(NSData *)imageData
             callback:(void (^)(GXResponse *result))callback;

-(void)callurl:(NSString *)url ImageArr:(NSArray *)imageArr callback:(void (^)(GXResponse *result))callback;
@end
